package md.com.lesson7;

public class Demo7 {
	public static void main(String[] args) {
		int g;
		int s;
		int b;
		for (int i = 100; i < 1000; i++) {
			g = i % 10;                               
            s = i / 10 % 10;                       
            b = i / 100 % 10;
            if (i == g*g*g+s*s*s+b*b*b) {
            	System.out.println(i);
            }
		}
	}
}
